Pod::Spec.new do |s|
  s.name         = "CTOpenSSL"
  s.version      = "1.0.0"
  s.summary      = "OpenSSL类库"
  s.homepage     = "https://gitee.com/Andney"
  s.license      = "MIT"
  s.author       = { "Andney" => "taifei_wang@163.com" }
  s.platform     = :ios, "7.0"
  s.source       = { :git => "https://gitee.com/Andney/openssl.git", :tag => s.version.to_s }
  s.requires_arc = true
  s.source_files = 'src/*.{h,m}'
  s.vendored_library = 'src/lib/*.a'
  s.user_target_xcconfig = { 'CLANG_ALLOW_NON_MODULAR_INCLUDES_IN_FRAMEWORK_MODULES' => 'YES' }
  s.xcconfig = { 'HEADER_SEARCH_PATHS' => '${PODS_ROOT}/CTOpenSSL/src/include' }
  # s.xcconfig = { 'HEADER_SEARCH_PATHS' => '$(SRCROOT)/../../src/include' }

  # OpenSSL头文件
  s.subspec 'openssl' do |sp|
      sp.name         = "openssl"
      sp.requires_arc = true
      sp.source_files = 'src/include/openssl/*.h'
  end
end
